/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.service.impl;

import com.qdu.dao.UsersDao;
import com.qdu.dao.impl.UsersDaoImpl;
import com.qdu.entity.Users;
import com.qdu.service.UsersService;

/**
 *
 * @author 12068
 */
public class  UsersServiceImpl implements UsersService{

     UsersDao sd = new UsersDaoImpl();

    @Override
    public int addNewUsers(Users u) {
        return sd.insert(u);
    }

    @Override
    public int modifyUsers(Users u) {
        return sd.update(u);
    }

    @Override
    public Users loginUsers(int Uno,String Upwd) {
        return sd.loginUsers(Uno, Upwd);
    }
    @Override
    public int modifyUpwd(Users u) {
        return sd.updatepwd(u);
    }

    @Override
    public Users getOneByUno(int Uno) {
        return sd.getOneByUno(Uno);
    } 
}
